The button and switch components have very little functions. Text color, alignment, bold, font name etc are all set by using the textformat class.
The way of setting them up is the same as for the contentPane; two clipevents.
Both the button and switch only require one color setting
c [button]
s [raise, angle] is the same as for the contentPane.

Setting the coordinates is the same for all components.
Button requires 'width' and 'height' just like the contentPane, switch requires 'size' instead because it always is square shaped.
